package com.szzg10.pattern.singleton;

public class Singleton {
	
	private static Singleton singleton = new Singleton();
	
	private Singleton() {};
	
	public static Singleton getInstance() {
		return singleton;
	}
	
	public void sayHello() {
		System.out.println("I am Singleton pattern!");
	}

}
